package com.qqtech.qquan.share.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;
import com.qqtech.qquan.share.cache.ShareSysParamCache;
import com.qqtech.qquan.share.dao.ShareSysParamDao;
import com.qqtech.qquan.share.model.*;

@Service
public class ShareSysParamServiceImpl extends BaseServiceImpl<ShareSysParam>
		implements ShareSysParamService {
	public static final Logger log = LoggerFactory.getLogger(ShareSysParamServiceImpl.class);
	
	@Resource
	private ShareSysParamDao shareSysParamDao;
	
	@Resource
	private ShareSysParamCache shareSysParamCache;

	@Override
	protected BaseDao<ShareSysParam> getBaseDao() {
		return shareSysParamDao;
	}
	
	@Override
	public ShareSysParam getByKey(java.lang.String key) {
		return shareSysParamDao.getByKey(key);
	}

	@Override
	public void clearAll() {
		shareSysParamCache.clearAll();
	}	
}